#! /bin/bash
#

read h w <<< $(stty size)

h=$((h*2))
input=$1
output="output.rgb"

ffmpeg -hide_banner -loglevel error -y -i ${input} -vf "scale=${w}:${h},format=rgb24" ${output}

./showrgb.out ${output} ${w} ${h}
